package org.itfarmer.dao.pojo;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity
public class User {

	private Integer workid;
	private String password;
	private String phone;
	private Integer grade;
	private String email;
	
	@Id 
	public Integer getWorkid() {
		return workid;
	}
	public void setWorkid(Integer workid) {
		this.workid = workid;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Integer getGrade() {
		return grade;
	}
	public void setGrade(Integer grade) {
		this.grade = grade;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	@Override
	public String toString() {
		return "User [workid=" + workid + ", password=" + password + ", phone="
				+ phone + ", grade=" + grade + ", email=" + email + "]";
	}
	public User(Integer workid, String password, String phone, Integer grade,
			String email) {
		super();
		this.workid = workid;
		this.password = password;
		this.phone = phone;
		this.grade = grade;
		this.email = email;
	}
	public User() {
		super();
	}
	
	

}
